<%--
  Created by IntelliJ IDEA.
  User: 86134
  Date: 2024/10/14
  Time: 20:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pet 列表</title>
</head>
<body>
    <h1>Pet 列表</h1>
    <table border="1">
        <tr>
            <th>ID</th>
            <th>名称</th>
            <th>品种</th>
            <th>性别</th>
            <th>生日</th>
            <th>描述</th>
        </tr>
        <c:forEach var="pet" items="${pets}">
            <tr>
                <td>${pet.petId}</td>
                <td>${pet.petName}</td>
                <td>${pet.petBreed}</td>
                <td>${pet.petSex}</td>
                <td>${pet.birthday}</td>
                <td>${pet.description}</td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>


